﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="UpdateUser.aspx.cs" Inherits="ShowroomMobile.UpdateUser" Theme="tbmobile"%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <link href="css/admin.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript" src="scripts/jquery.js"></script>
    <title></title>
    <script>
        $(document).ready(function () {
            $('img')
	            .error(function () {
	                $(this).attr("src", "images/photo_not_available.jpg");
	            });
	        });

    </script>
</head>
<body>
    <form id="form1" runat="server">
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
    <div>
        <table cellpadding="5" cellspacing="0">
            <tr>
                <td>
                    Username
                    <label class='required'>
                        *</label>
                </td>
                <td>
                    <asp:TextBox ID="txtUsername" runat="server" class="admin_txt" ValidationGroup="Save"
                        Width="300px" />
                    <asp:RequiredFieldValidator ValidationGroup="Save" ID="RequiredFieldValidator3" runat="server"
                        class='requiredField' ErrorMessage="" Text='' Display="Dynamic" ControlToValidate="txtUsername"></asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr>
                <td>
                    Full Name
                    <label class='required'>
                        *</label>
                </td>
                <td>
                    <asp:TextBox ID="txtFullName" runat="server" class="admin_txt" ValidationGroup="Save"
                        Width="300px" />
                    <asp:RequiredFieldValidator ValidationGroup="Save" ID="RequiredFieldValidator1" runat="server"
                        class='requiredField' ErrorMessage="" Text='' Display="Dynamic" ControlToValidate="txtFullName"></asp:RequiredFieldValidator>
                </td>
            </tr>
            <div id='divPwd' runat="server" visible="false">
                <tr>
                    <td>
                        Password
                        <label class='required'>
                            *</label>
                    </td>
                    <td>
                        <asp:TextBox ID="txtPassword" runat="server" class="admin_txt" ValidationGroup="Save" TextMode="Password"
                            Width="300px" />
                        <asp:RequiredFieldValidator ValidationGroup="Save" ID="rfvPassword" runat="server"
                            class='requiredField' ErrorMessage="" Text='' Display="Dynamic" ControlToValidate="txtPassword"></asp:RequiredFieldValidator>
                    </td>
                </tr>
                <tr>
                    <td>
                        Confirm Password
                        <label class='required'>
                            *</label>
                    </td>
                    <td>
                        <asp:TextBox ID="txtConfirmPassword" runat="server" class="admin_txt" ValidationGroup="Save" TextMode="Password"
                            Width="300px" />
                        <asp:RequiredFieldValidator ValidationGroup="Save" ID="rfvConfirmPassword" runat="server"
                            class='requiredField' ErrorMessage="" Text='' Display="Dynamic" ControlToValidate="txtConfirmPassword"></asp:RequiredFieldValidator>
                    </td>
                </tr>
            </div>
            <tr>
                <td>
                </td>
                <td>
                    <asp:Button runat="server" ID="btnSave" ValidationGroup="Save" OnClick="btnSave_OnClick"
                        Text="Save" />
                    <asp:Button runat="server" ID="btnResetPassword" ValidationGroup="Save" OnClick="btnResetPassword_OnClick" Visible="false"
                        Text="Change Password" ToolTip="Click here to change password" />
                    <br />
                    <br />
                    <label class='required'>*</label>
                    required
                </td>
            </tr>
        </table>
    </div>
    </form>
</body>
</html>
